package com.robotic.test;

import java.nio.ByteBuffer;
import java.nio.ByteOrder;

public class GasData {
    private float gasValue;

    public GasData(byte[] data) {
        ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN);
        this.gasValue = buffer.getFloat();
    }

    public float getGasValue() {
        return gasValue;
    }
}